import React from 'react';
import { Route } from 'react-router';
import { WeaLocaleProvider } from 'ecCom';

import WeaPortalEMMenu from './components/';
import stores from './stores/';

// 多语言
const getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(this, 'theme');

const Routes = [
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@2mib1z`} path="main" onEnter={getLocaleLabel} component={WeaPortalEMMenu} />,
];

module.exports = {
    Route: Routes,
    store: stores,
};
